package com.lagou.homework2;

/**
 * 编程实现测试类
 */
public class Test {
    public static void main(String[] args) {
        //声明该类型的引用指向该类型的对象
        OldPhone op = new OldPhone();
        op.call();
        op.seedMessage();

        NewPhone np = new NewPhone();
        np.call();
        np.seedMessage();
        np.play();
    }
}
